import http from "../httpService";
import { CategoryQueryDto } from "./dto/categoryQueryDto";
import { CategoryListDto } from "./dto/categoryListDto";


class CategoryService {
    public async getCategoriesAsync(input:CategoryQueryDto) : Promise<CategoryListDto[]>{
        let result = await http.get('/api/services/app/Category/GetCategoriesAsync', input);
        return result.data.result;
    }
}

export default new CategoryService()